package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 功能简述: 菜品口味关系表(DishFlavor)Mapper接口
 *
 * @author 86156
 * @date: 2024/09/05
 */
@Mapper
public interface DishFlavorMapper {
    @AutoFill(OperationType.INSERT)
    int insertBatch(List<DishFlavor> dishFlavors);

    void deleteByDishIds(List<Long> ids);

    List<DishFlavor> selectByDishId(Long id);

    void deleteByDishId(Long id);
}
